package com.one.blocks.eds.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;
import java.util.Properties;

/**
 * @author <a href="mailto:idler41@163.con">linfuxin</a> created on 2023-10-16 21:36:34
 */
@Data
@ConfigurationProperties(prefix = "spring.datasource")
public class EdsProperties {

    /**
     * 静态数据源配置
     */
    private Map<String, Properties> eds;

    /**
     * 默认数据源
     */
    private String edsDefaultKey;

    private Long edsExpireTime = 86400000L;

    private Long edsScanTime = 86400000L;

    private String edsDestroyTaskName = "edsDestroyTask";

    private String edsScanTaskName = "edsScanTask";
}
